import request from '@/router/axios';

export const getList = (current, size, params) => {
    return request({
        url: '/api/server-biz/admin/user/level/apply/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getDetail = (id) => {
    return request({
        url: '/api/server-biz/admin/user/level/apply/info',
        method: 'get',
        params: {
            id
        }
    })
}

export const remove = (ids) => {
    return request({
        url: '/api/server-biz/admin/user/level/apply/remove',
        method: 'post',
        params: {
            ids,
        }
    })
}

// export const add = (row) => {
//   return request({
//     url: '/api/server-user/admin/withdraw/submit',
//     method: 'post',
//     data: row
//   })
// }

// export const update = (row) => {
//   return request({
//     url: '/api/server-user/admin/withdraw/submit',
//     method: 'post',
//     data: row
//   })
// }

export const audit = (row) => {
    return request({
        url: '/api/server-biz/admin/user/level/apply/audit',
        method: 'post',
        data: row
    })
}

